<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>给组件绑定原生事件</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="root">
        <child @click.native="handleClick"></child>
    </div>
    <script>
        Vue.component("child",{
            template: "<div>Child</div>",
        })
        var vm = new Vue({
            el: "#root",
            methods: {
                handleClick: function () {
                    console.log("aaa")
                }
            }
        })
    </script>
</body>
</html>